package com.dic.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dic.common.utils.PageUtils;
import com.dic.mall.product.entity.AttrAttrgroupRelationEntity;
import com.dic.mall.product.entity.AttrEntity;
import com.dic.mall.product.vo.AttrRespVo;
import com.dic.mall.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author liliang
 * @email LeeLiang2016@163.com
 * @date 2020-07-06 17:20:25
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVo attr);

    PageUtils queryBaseAttrPage(Map<String, Object> params, Long catelogId,String attrType);

    AttrRespVo getAttrInfo(Long attrId);

    void updateAttr(AttrRespVo attr);

    List getAttrRelation(Long attrGroupId);

    void deleteRelation(AttrAttrgroupRelationEntity[] entities);

    PageUtils getNoAttrRelation(Map<String, Object> params, Long attrGroupId);

    List<Long> selectSearchAttrsByIds(List<Long> ids);
}

